'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 技能
 * @author sundbcn@gmail.com (sun debing)
 */

var skillConf = require('../../config/skillConf');

/**
 * 获取技能属性
 * @param  {[type]} skill_type [description]
 * @param  {[type]} skill_lv   [description]
 * @return {[type]}            [description]
 */
exports.getAttr = function (skill_type, skill_lv) {
    var skill_lv_conf = skillConf.getSkillLvConf(skill_type, skill_lv);
    return {
        skill_type: skill_type,
        cd_time: skill_lv_conf.cd_time,
        skill_range: skill_lv_conf.skill_range,
        skill_time: skill_lv_conf.skill_time,
        time_space: skill_lv_conf.time_space,
        value: skill_lv_conf.value,
        add_skill_list: skillConf.getSkillBufConf(skill_type, skill_lv)
    };
};
